export default {
  state: {
    Topref: 9,
    Topkey: '', //记录服务锚点
    localindex: 0, //记录pc头部下标
    newStorage: {}
  },
  mutations: {
    setnewStorage (state, value) {},
    changeTopkey (state, value) {
      state.Topkey = value
    },
    StorageIndex (state, value) {
      state.localindex = value
    }
  },
  actions: {
    contextinfo (context, value) {
      // console.log('actions,context和接收参数', context, value)
      context.dispatch('Twicecontextinfo', 12)
    },
    Twicecontextinfo (context, value) {
      // console.log('actions二次处理,context和接收参数', context, value)
      context.commit('getbaseinfo', 24)
    }
  },
  getters: {
    addten (state) {
      return state.baseinfo * 10
    }
  }
}
